import sys,os
sys.path.append(os.path.realpath('../myfunctions'))
import glob
import fast_network_analysis as fna
import netclass as nc
import net_analysis as na
import single_cell_analysis as ssa
import net_get_analysis as nga

import shelve
import numpy
from scipy import *
import scipy.io as io
from brian import *
import time

pathfolder= '../data_analysed'
filename='2013-5-11-20-8'

filelist=glob.glob(pathfolder+'/'+filename+'*') # get list of all the files of that dataset

#nga.largeevents(filelist,'No') # 'No' for deleting spikes, 'Yes' for keeping the spikes

nga.correlations(filelist)

#for filenames in os.walk(pathfolder):
#    print filenames

